<div class='menu-header'>{php echo $this->plugintitle}</div>

{ifp 'fullownership.partner|fullownership.level'}
<ul>
    {ifp 'fullownership.partner'}<li {if $_W['routes']=='fullownership.partner'}class="active"{/if}><a href="{php echo webUrl('fullownership/partner')}">股东管理</a></li>{/if}
    {ifp 'fullownership.level'}<li {if $_W['routes']=='fullownership.level'}class="active"{/if}><a href="{php echo webUrl('fullownership/level')}">股东等级</a></li>{/if}
</ul>
{/if}

<style type='text/css'>
    .globonus-list a {
        position: relative;
    }
    .globonus-list span  {

        float:right;margin-right:20px;
    }
</style>

{ifp 'fullownership.bonus.status0|fullownership.bonus.status1|fullownership.bonus.status2|fullownership.bonus.build'}

{php $totals = $this->model->getTotals()}
<div class='menu-header'>结算单</div>
<ul class="fullownership-list">

    {ifp 'fullownership.bonus.status0'}<li {if ($_W['routes']=='fullownership.bonus.status0') || ($_W['routes']=='fullownership.bonus.detail' && $data['status']==0)}class="active"{/if}><a href="{php echo webUrl('fullownership/bonus/status0')}">待确认 <span  class='text-cancel'  id="total0">-</span></a></li>{/if}
    {ifp 'fullownership.bonus.status1'}<li {if ($_W['routes']=='fullownership.bonus.status1') || ($_W['routes']=='fullownership.bonus.detail' && $data['status']==1)}class="active"{/if}><a href="{php echo webUrl('fullownership/bonus/status1')}">待结算 <span  class='text-danger' id="total1">-</span></a></li>{/if}
    {ifp 'fullownership.bonus.status2'}<li {if ($_W['routes']=='fullownership.bonus.status2') || ($_W['routes']=='fullownership.bonus.detail' && $data['status']==2)}class="active"{/if}><a href="{php echo webUrl('fullownership/bonus/status2')}">已结算 <span  class='text-success' id="total2">-</span></a></li>{/if}
    {ifp 'fullownership.bonus.build'}<li {if $_W['routes']=='fullownership.bonus.build'}class="active"{/if}><a href="{php echo webUrl('fullownership/bonus/build')}">创建结算单</a></li>{/if}
</ul>
{/if}

{ifp 'fullownership.cover|fullownership.notice|fullownership.set'}
<div class="menu-header">设置</div>
<ul>
    {ifp 'fullownership.cover'}<li {if $_W['routes']=='fullownership.cover'}class="active"{/if}><a href="{php echo webUrl('fullownership/cover')}">入口设置</a></li>{/if}
    {ifp 'fullownership.notice'}<li {if $_W['routes']=='fullownership.notice'}class="active"{/if}><a href="{php echo webUrl('fullownership/notice')}">通知设置</a></li>{/if}
    {ifp 'fullownership.set'}<li {if $_W['routes']=='fullownership.set'}class="active"{/if}><a href="{php echo webUrl('fullownership/set')}">基础设置</a></li>{/if}
</ul>

{/if}

<script>
    $(function () {
        $.ajax({type: "GET",async: false,url: "{php echo webUrl('fullownership/bonus/totals')}",dataType:"json",success: function(data){
            var res = data.result;
            $("#total0").text(res.total0);
            $("#total1").text(res.total1);
            $("#total2").text(res.total2);
        }
        });
    });
</script>
<!--6Z2S5bKb5piT6IGU5LqS5Yqo572R57uc56eR5oqA5pyJ6ZmQ5YWs5Y+4-->